package com.ctshk.rpc.order.season.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ctshk.rpc.order.season.dto.SeasonSearchOrderDTO;
import com.ctshk.rpc.order.season.entity.SeasonOrder;
import com.ctshk.rpc.order.season.entity.SeasonOrderTourist;
import com.ctshk.rpc.order.season.req.SearchSeasonOrderReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 套票订单 Mapper 接口
 * </p>
 *
 * @author 杨林
 * @since 2021-03-24
 */
public interface SeasonOrderMapper extends BaseMapper<SeasonOrder> {

    /* @MethodName: 搜索订单
     * @Description: TODO
     * @Param:
     * @Return:
     * @Author: 杨林
     * @Date:2021/3/29 10:41
     **/
    IPage<SeasonSearchOrderDTO> searchSeasonOrderList(@Param("req") SearchSeasonOrderReq req, IPage<SeasonSearchOrderDTO> page);

    /* @MethodName: 获取旅客参保的一些信息
     * @Description: TODO
     * @Param:
     * @Return:
     * @Author: 杨林
     * @Date:2021/4/1 10:18
     **/
    List<SeasonOrderTourist> getTouistList(@Param("orderId") Long orderId, @Param("insuredPerson") String insuredPerson);

    Integer getTouristTypeMapper(@Param("orderId") Long orderId, @Param("flag") Integer flag);
}
